<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATECCore/ITrsnManager.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_b036ea399c584d2b2a32165352c4a594.html">ATECCore</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">ITrsnManager.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../dd/db9/_i_trsn_manager_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span>BEGIN_ATEC_ATCORE_NAMESPACE</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="keyword">typedef</span> ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::ATDataCore::ATProjectPtr&gt;         T_ATProjectPtrVector;</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="keyword">typedef</span> ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::ATDataCore::ATProjectPtr&gt; <span class="keyword">const</span>*  T_ATProjectPtrVectorCP;</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="keyword">typedef</span> ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::ATDataCore::ATProjectPtr&gt; <span class="keyword">const</span>&amp;  T_ATProjectPtrVectorCR;</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="keyword">typedef</span> ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::ATDataCore::ATProjectPtr&gt;&amp;        T_ATProjectPtrVectorR;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="keyword">enum class</span> UIItemStateType</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    None = 0,</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    Visible = (1 &lt;&lt; 0),</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>    Enabled = (1 &lt;&lt; 1),</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    Checked = (1 &lt;&lt; 2),</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>};</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">struct </span>UIItemStateEntry</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>{</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    UInt32        StateFlags;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>    MenuMarkType  MarkType;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>    UIItemStateEntry()</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>    {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>        StateFlags = 0;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>        MarkType = MARK_NONE;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    }</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    UIItemStateEntry(<span class="keywordtype">bool</span> isVisible, <span class="keywordtype">bool</span> isEnabled, <span class="keywordtype">bool</span> isChecked, MenuMarkType marktype)</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>        StateFlags = 0;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>        <span class="keywordflow">if</span> (isVisible)</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>            StateFlags |= (UInt32)UIItemStateType::Visible;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>        <span class="keywordflow">if</span> (isEnabled)</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>            StateFlags |= (UInt32)UIItemStateType::Enabled;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>        <span class="keywordflow">if</span> (isChecked)</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>            StateFlags |= (UInt32)UIItemStateType::Checked;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>        MarkType = marktype;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    }</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    UIItemStateEntry(UIItemStateType itemState, <span class="keywordtype">bool</span> value)</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>    {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>        StateFlags = 0;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>        MarkType = MARK_NONE;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>        <span class="keywordflow">if</span> (value)</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>            StateFlags |= (UInt32)itemState;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    }</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    <span class="keywordtype">void</span> Assign(UIItemStateType itemState, <span class="keywordtype">bool</span> value)</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>        StateFlags = (value) ? StateFlags | (UInt32)itemState : StateFlags &amp; ~(UInt32)itemState;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    }</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>};</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="../../d1/d86/struct_i_a_t_trsn_manager.html">   73</a></span><span class="keyword">struct  </span><a class="code hl_struct" href="../../d1/d86/struct_i_a_t_trsn_manager.html">IATTrsnManager</a></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>{</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span><span class="keyword">private</span>: <span class="keyword">virtual</span> <span class="keywordtype">void</span> IAmAbstractClass() = 0;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="../../d1/d86/struct_i_a_t_trsn_manager.html#a347931bc156ac2d42fcf5100ab44a5d2">   89</a></span>    ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::ATDataCore::ATProjectStatus <a class="code hl_function" href="../../d1/d86/struct_i_a_t_trsn_manager.html#a347931bc156ac2d42fcf5100ab44a5d2">NewDesignFile</a>(ATEC_NAMESPACE_NAME::ATDataCore::ATDocR, ATEC_NAMESPACE_NAME::WCharCP sceneName, <span class="keywordtype">bool</span> excludeFromRecentList);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="../../d1/d86/struct_i_a_t_trsn_manager.html#aba4d86ae42b48c7bb9bd6db00096d874">   99</a></span>    ATECCORE_EXPORTED <span class="keyword">static</span> IATTrsnManagerR <a class="code hl_function" href="../../d1/d86/struct_i_a_t_trsn_manager.html#aba4d86ae42b48c7bb9bd6db00096d874">GetManager</a>();</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="../../d1/d86/struct_i_a_t_trsn_manager.html#a90dfe002b9010cb2c659c4d1f2d8c277">  109</a></span>    ATECCORE_EXPORTED <span class="keyword">static</span> ATEC_NAMESPACE_NAME::ATDataCore::ATProjectP <a class="code hl_function" href="../../d1/d86/struct_i_a_t_trsn_manager.html#a90dfe002b9010cb2c659c4d1f2d8c277">GetActiveATProject</a>();</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="../../d1/d86/struct_i_a_t_trsn_manager.html#a374d0ab0b66938c367410d6876101ae5">  119</a></span>    ATECCORE_EXPORTED <span class="keyword">static</span> ATEC_NAMESPACE_NAME::ATDataCore::ATSceneP <a class="code hl_function" href="../../d1/d86/struct_i_a_t_trsn_manager.html#a374d0ab0b66938c367410d6876101ae5">GetActiveATSceneP</a>();</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>};</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>END_ATEC_ATECCORE_NAMESPACE</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span> </div>
<div class="ttc" id="astruct_i_a_t_trsn_manager_html"><div class="ttname"><a href="../../d1/d86/struct_i_a_t_trsn_manager.html">IATTrsnManager</a></div><div class="ttdoc">管理主文件的管理器对象</div><div class="ttdef"><b>Definition:</b> ITrsnManager.h:74</div></div>
<div class="ttc" id="astruct_i_a_t_trsn_manager_html_a347931bc156ac2d42fcf5100ab44a5d2"><div class="ttname"><a href="../../d1/d86/struct_i_a_t_trsn_manager.html#a347931bc156ac2d42fcf5100ab44a5d2">IATTrsnManager::NewDesignFile</a></div><div class="ttdeci">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::ATDataCore::ATProjectStatus NewDesignFile(ATEC_NAMESPACE_NAME::ATDataCore::ATDocR, ATEC_NAMESPACE_NAME::WCharCP sceneName, bool excludeFromRecentList)</div><div class="ttdoc">创建新的文件</div></div>
<div class="ttc" id="astruct_i_a_t_trsn_manager_html_a374d0ab0b66938c367410d6876101ae5"><div class="ttname"><a href="../../d1/d86/struct_i_a_t_trsn_manager.html#a374d0ab0b66938c367410d6876101ae5">IATTrsnManager::GetActiveATSceneP</a></div><div class="ttdeci">static ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::ATDataCore::ATSceneP GetActiveATSceneP()</div><div class="ttdoc">获取当前活跃场景</div></div>
<div class="ttc" id="astruct_i_a_t_trsn_manager_html_a90dfe002b9010cb2c659c4d1f2d8c277"><div class="ttname"><a href="../../d1/d86/struct_i_a_t_trsn_manager.html#a90dfe002b9010cb2c659c4d1f2d8c277">IATTrsnManager::GetActiveATProject</a></div><div class="ttdeci">static ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::ATDataCore::ATProjectP GetActiveATProject()</div><div class="ttdoc">获取当前活跃场景的文件</div></div>
<div class="ttc" id="astruct_i_a_t_trsn_manager_html_aba4d86ae42b48c7bb9bd6db00096d874"><div class="ttname"><a href="../../d1/d86/struct_i_a_t_trsn_manager.html#aba4d86ae42b48c7bb9bd6db00096d874">IATTrsnManager::GetManager</a></div><div class="ttdeci">static ATECCORE_EXPORTED IATTrsnManagerR GetManager()</div><div class="ttdoc">获取管理器单例</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
